<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .text {
            font-size: 30px;
            color: white;
            text-align: center;
            font-style: italic;
            line-height: 300px;
        }

        .d1 {
            width: 300px;
            height: 300px;
            
            background: linear-gradient(45deg, red, blue);
            
            border-top-left-radius: 100%;
        }

        .d2 {
            width: 300px;
            height: 300px;
            border-bottom-left-radius: 100%;
            background: radial-gradient(orange 35%, red, yellow);
        }
        .d11{
            width: 300px;
            height: 300px;
            background: repeating-linear-gradient(-45deg,brown,green,blue);
           
            border-top-right-radius: 100%;
        }
        .d22{
            width: 300px;
            height: 300px;
            border-bottom-right-radius: 100%;
            background: repeating-linear-gradient(silver,aqua 30%)
            
        }
        .box{
            display: flex;
            flex-wrap: wrap;
            width: 600px;
            border: 10px solid black;
            border-radius: 50%;
            margin: auto;
            
            animation: box 4s linear 1;
         
        }
        @keyframes box{
            0%{
                
                transform: rotate(0deg);
            }
            100%{
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <h1 style="text-align: center;">渐变作业</h1>
    <div class="box">
        <div class="d1 text">线性渐变1</div>
        <div class="d11 text">线性渐变2</div>
        <div class="d2 text">径向渐变1</div>
        <div class="d22 text">径向渐变2</div>

    </div>

</body>

</html>